package com.condroid;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

/**
 * Splash screen activity.
 * @author Lan Sun
 * Condroid Summer CSD 2011 - KTH
 */
public class CondroidProjectActivity extends Activity {
    /** Called when the activity is first created. */

	 private final int SPLASH_DISPLAY_LENGHT = 3000; //delay 3 second
    @Override
    
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.show);
      //  Button bt=(Button)findViewById(R.id.button1); 
      //  bt.setOnClickListener(new ButtonListener()); 
        
       
        new Handler().postDelayed(new Runnable(){
        	@Override 
        	public void run() {
        		Intent mainIntent = new Intent(CondroidProjectActivity.this,MainActivity.class); 
        		CondroidProjectActivity.this.startActivity(mainIntent); 
        		CondroidProjectActivity.this.finish();
        		}
        	}, SPLASH_DISPLAY_LENGHT);
        }
    }
